/* =====================================================
   Some defaults across all toggle demos
   ===================================================== */

.toggle {
  display: block;
  text-align: center;
  margin-top: 40px;
  user-select: none;
  position: absolute;
  left: 50px;
  top: -30px;
}

.toggle--checkbox {
  display: none;
}

.toggle--btn {
  display: block;
  margin: 0 auto;
  font-size: 1.4em;
  transition: all 350ms ease-in;
}

.toggle--btn:hover {
  cursor: pointer;
}

.toggle--btn, .toggle--btn:before, .toggle--btn:after, .toggle--checkbox, .toggle--checkbox:before, .toggle--checkbox:after, .toggle--feature, .toggle--feature:before, .toggle--feature:after {
  transition: all 250ms ease-in;
}

.toggle--btn:before, .toggle--btn:after, .toggle--checkbox:before, .toggle--checkbox:after, .toggle--feature:before, .toggle--feature:after {
  content: '';
  display: block;
}

/* =====================================================
     Toggle - switch stylee
     ===================================================== */

.toggle--switch .toggle--btn {
  position: relative;
  width: 88px;
  height: 38px;
  font-family: 'PT Sans', Sans Serif;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #a4bf4d 0%, #a4bf4d 50%, #ca5046 50%, #ca5046 200%);
  background-position: -80px 0;
  background-size: 200% 100%;
  box-shadow: inset 0 0px 22px -8px #111;
}

.toggle--switch .toggle--btn, .toggle--switch .toggle--btn:before {
  border-radius: 4px;
}

.toggle--switch .toggle--btn:before {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 38px;
  border: 2px solid #202027;
  background-image: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.15) 100%);
  background-color: #2b2e3a;
  background-size: 5px 5px;
  text-indent: -100%;
}

.toggle--switch .toggle--feature {
  position: relative;
  display: block;
  overflow: hidden;
  height: 38px;
  text-shadow: 0 1px 2px #666;
}

.toggle--switch .toggle--feature:before, .toggle--switch .toggle--feature:after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.toggle--switch .toggle--feature:before {
  content: attr(data-label-on);
  left: -60%;
  font-size: 14px;
}

.toggle--switch .toggle--feature:after {
  content: attr(data-label-off);
  right: 12%;
  font-size: 14px;
}

.toggle--switch .toggle--checkbox:checked+.toggle--btn {
  background-position: 0 0;
}

.toggle--switch .toggle--checkbox:checked+.toggle--btn:before {
  left: calc(100% - 44px);
}

.toggle--switch .toggle--checkbox:checked+.toggle--btn .toggle--feature:before {
  left: 10%;
}

.toggle--switch .toggle--checkbox:checked+.toggle--btn .toggle--feature:after {
  right: -60%;
}

#content canvas.ol-unselectable {
  background: #fff;
}

.rotate-north {
  top: 65px;
  left: .5em;
}

.ol-touch .rotate-north {
  top: 80px;
}